package com.yun.zf.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yun.zf.common.admin.dto.community.CommunityBasicDto;
import com.yun.zf.common.admin.dto.community.CommunityDto;
import com.yun.zf.common.admin.model.community.CommunityAddMo;
import com.yun.zf.common.admin.model.search.CommunitySearchMo;
import com.yun.zf.common.app.domain.ZfCommunity;
import com.yun.zf.common.app.dto.detail.CommunityNearByDto;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 社区表 服务类
 * </p>
 *
 * @author cj
 * @since 2021-01-29
 */
public interface ZfCommunityService extends IService<ZfCommunity> {

    /**
     * 录入小区基本信息
     * @param communityName
     * @param city
     * @return
     */
    Long addBasicCommunity( String communityName,String[] city, String deptId);


    public CommunityDto getCommunityById(Long communityId);

    public void motifyCommunity(CommunityAddMo communityAddMo);

    public void  publishCommunity(Long id);

    public ZfCommunity esCommunityById(Long communityId);

    public List<Map<String, String>> communitySuggestToHouse(String text, Long cityCode);

    public List<Map<String,String>> communitySuggest (String text,Long cityCode);

    public Map<String, Object> searchCommunitys(CommunitySearchMo communitySearchMo);

    public  List<CommunityNearByDto> getBasicCommunity(List<Long> ids);

    public  ZfCommunity getCommunity(Long communityId,  Long provinceCode ,Long cityCode);

    public  ZfCommunity findommunityBasic(Long communityId);

    void changeStatus(Long communityId,String status);

    CommunityBasicDto getBasic(Long communityId);
}
